import config from '@/config'
import http from '@/utils/request'

export default {
	importExpertInformation: {
		url: `${config.API_URL}/expertInformation/importExpertInformation`,
		name: '专家信息导入',
		post: async function (data = {}) {
			// eslint-disable-next-line no-return-await
			return await http.post(this.url, data)
		}
	},
	importHosptialInformation: {
		url: `${config.API_URL}/HosptialInfo/importHosptialInformation`,
		name: '医院信息导入',
		post: async function (data = {}) {
			// eslint-disable-next-line no-return-await
			return await http.post(this.url, data)
		}
	},
	importPolicy: {
		url: `${config.API_URL}/Policy/importPolicy`,
		name: '政策信息导入',
		post: async function (data = {}) {
			// eslint-disable-next-line no-return-await
			return await http.post(this.url, data)
		}
	},
	importStrangeDoctor: {
		url: `${config.API_URL}/StrangeDoctor/importStrangeDoctor`,
		name: '陌生医生导入',
		post: async function (data = {}) {
			// eslint-disable-next-line no-return-await
			return await http.post(this.url, data)
		}
	},
	importTransactionDetail: {
		url: `${config.API_URL}/TransactionDetail/importTransactionDetail`,
		name: '交易信息导入',
		post: async function (data = {}) {
			// eslint-disable-next-line no-return-await
			return await http.post(this.url, data)
		}
	},
	importAreaMapping: {
		url: `${config.API_URL}/AreaMapping/importAreaMapping`,
		name: '区域映射导入',
		post: async function (data = {}) {
			// eslint-disable-next-line no-return-await
			return await http.post(this.url, data)
		}
	},
	getStrangeDoctorList: {
		url: `${config.API_URL}/StrangeDoctor/pageList`,
		name: '陌生医生列表',
		post: async function (data = {}) {
			// eslint-disable-next-line no-return-await
			return await http.post(this.url, data)
		}
	},
	getExpertList: {
		url: `${config.API_URL}/expertInformation/getExpertList`,
		name: '专家信息分页列表',
		post: async function (data = {}) {
			// eslint-disable-next-line no-return-await
			return await http.post(this.url, data)
		}
	},
	getHospList: {
		url: `${config.API_URL}/HosptialInfo/pageList`,
		name: '医院信息分页列表',
		post: async function (data = {}) {
			// eslint-disable-next-line no-return-await
			return await http.post(this.url, data)
		}
	},
	getDealDetailList: {
		url: `${config.API_URL}/TransactionDetail/pageList`,
		name: '交易明细',
		post: async function (data = {}) {
			// eslint-disable-next-line no-return-await
			return await http.post(this.url, data)
		}
	},
	getAreaMappingList: {
		url: `${config.API_URL}/AreaMapping/pageList`,
		name: '区域映射',
		post: async function (data = {}) {
			// eslint-disable-next-line no-return-await
			return await http.post(this.url, data)
		}
	},
	getPolicyList: {
		url: `${config.API_URL}/Policy/getPolicyList`,
		name: '政策信息',
		post: async function (data = {}) {
			// eslint-disable-next-line no-return-await
			return await http.post(this.url, data)
		}
	},
	getTransactionDetailList: {
		url: `${config.API_URL}/TransactionDetail/getList`,
		name: '物料名称',
		post: async function (data = {}) {
			// eslint-disable-next-line no-return-await
			return await http.post(this.url, data)
		}
	},
	delExpertInformation: {
		url: `${config.API_URL}/expertInformation/delExpertInformation`,
		name: '专家信息删除',
		post: async function (data = {}) {
			// eslint-disable-next-line no-return-await
			return await http.post(this.url, data)
		}
	},
	delete: {
		url: `${config.API_URL}/StrangeDoctor/delete`,
		name: '陌生医生信息删除',
		post: async function (data = {}) {
			// eslint-disable-next-line no-return-await
			return await http.post(this.url, data)
		}
	},
	delHosptialInformation: {
		url: `${config.API_URL}/HosptialInfo/delHosptialInformation`,
		name: '医院信息删除',
		post: async function (data = {}) {
			// eslint-disable-next-line no-return-await
			return await http.post(this.url, data)
		}
	},
	TransactionDetailDel: {
		url: `${config.API_URL}/TransactionDetail/delete`,
		name: '物料名称填报删除',
		post: async function (data = {}) {
			// eslint-disable-next-line no-return-await
			return await http.post(this.url, data)
		}
	},
	transactionDetailEdit: {
		url: `${config.API_URL}/TransactionDetail/edit`,
		name: '物料名称修改',
		post: async function (data = {}) {
			// eslint-disable-next-line no-return-await
			return await http.post(this.url, data)
		}
	},
	getChinaTree: {
		url: `${config.API_URL}/basic/home/getChinaTree`,
		name: '省市下拉',
		get: async function (data = {}) {
			// eslint-disable-next-line no-return-await
			return await http.get(this.url, data)
		}
	},
	strangeDoctorexport: {
		url: `${config.API_URL}/StrangeDoctor/export`,
		name: '陌生医生导出',
		post: async function (data = {}) {
			// eslint-disable-next-line no-return-await
			return await http.post(this.url, data)
		}
	},
	expertInformationExport: {
		url: `${config.API_URL}/expertInformation/export`,
		name: '专家信息导出',
		post: async function (data = {}) {
			// eslint-disable-next-line no-return-await
			return await http.post(this.url, data)
		}
	},
	hosptialInfoExport: {
		url: `${config.API_URL}/HosptialInfo/export`,
		name: '医院信息导出',
		post: async function (data = {}) {
			// eslint-disable-next-line no-return-await
			return await http.post(this.url, data)
		}
	},
	transactionDetailExport: {
		url: `${config.API_URL}/TransactionDetail/export`,
		name: '交易明细导出',
		post: async function (data = {}) {
			// eslint-disable-next-line no-return-await
			return await http.post(this.url, data)
		}
	},
	StrangeDoctorList: {
		url: `${config.API_URL}/StrangeDoctor/StrangeDoctorList`,
		name: '登记会议下拉',
		get: async function (data = {}) {
			// eslint-disable-next-line no-return-await
			return await http.get(this.url, data)
		}
	},
	nameList: {
		url: `${config.API_URL}/HosptialInfo/nameList`,
		name: '医院类型下拉',
		get: async function (data = {}) {
			// eslint-disable-next-line no-return-await
			return await http.get(this.url, data)
		}
	},
	expertFamiliarityList: {
		url: `${config.API_URL}/expertInformation/expertFamiliarityList`,
		name: '专家熟悉程度',
		get: async function (data = {}) {
			// eslint-disable-next-line no-return-await
			return await http.get(this.url, data)
		}
	},
}
